unit cmdSetCenterY;

interface

uses  classes, sysutils
    , nativeXml
    , appMappldXmlNode
    , appMappldXmlCommand
    , appMappldTypes
    , appMappldXmlContext
;

type
    {------------------------------ TCmdSetCenterY }

    {***************************************************************************
    * TCmdSetCenterY
    ***************************************************************************}
    TCmdSetCenterY = class( TMappldXmlCommand )
protected
    procedure   internalProccess(); override;
    end;

implementation

{*******************************************************************************
* internalProccess
*******************************************************************************}
procedure TCmdSetCenterY.internalProccess();
begin
    FxmlContext.centerY := FxmlNode.ValueAsFloat;
end;

initialization

TMappldXmlCommand.registerCommandByCode( XML_CMD_SetCenterY, TCmdSetCenterY );

end.
